﻿using System;
using System.ComponentModel;

namespace BizControl.Presentation.Infrastructure.Helpers
{
  public static class HandlersHelper
  {
    public static void AddHandler(INotifyPropertyChanged property, PropertyChangedEventHandler handler)
    {
      if (property != null)
        property.PropertyChanged += handler;
    }

    public static void RemoveHandler(INotifyPropertyChanged property, PropertyChangedEventHandler handler)
    {
      if (property != null)
        property.PropertyChanged -= handler;
    }

  }
}
